﻿
using System; 
using System.Text;
using System.Collections.Generic; 
using System.Data;
using Kevin.Framework.Data.OrmMapping;
using Kevin.Framework.Validation;
/*------------------------------------------------------------------------
   苏州捷安信息科技有限公司 版权所有			
   文件名: TU_Resource.cs
   作 者 : 席吉波
   日 期 : 2012-10-16
   备 注 : 当您对本文件更改时请写明修改人、修改日期以及事由
  ------------------------------------------------------------------------
*/
namespace JOIN.Rights.Model{
	 	//TU_Resource
		[Serializable]
	[TableMapping("TU_Resource")]
	public class ResourceInfo : EntityBase
	{
		#region Constructor
		
		public ResourceInfo()
			:this("")
		{}
		public ResourceInfo(string connectionKey)
			:base(connectionKey)
		{}
		
		#endregion
   		
      			
		private string _resourceid;     
		/// <summary>
		/// 资源ID
        /// </summary>		
		[FieldMapping("ResourceID" )]		
		[NotNullValidator(MessageTemplate="资源ID不能为空")]
				public string ResourceID
        {
            get
            { 
            	return _resourceid; 
            }
            set
            { 
            	if(_resourceid != value)
            	{            	
            		base.OnPropertyChanged("ResourceID", _resourceid, value);
            		_resourceid = value; 
            	}
            }
        }        
				
		private string _resourcename;     
		/// <summary>
		/// 资源名称
        /// </summary>		
		[FieldMapping("ResourceName" )]		
		[NotNullValidator(MessageTemplate="资源名称不能为空")]
				public string ResourceName
        {
            get
            { 
            	return _resourcename; 
            }
            set
            { 
            	if(_resourcename != value)
            	{            	
            		base.OnPropertyChanged("ResourceName", _resourcename, value);
            		_resourcename = value; 
            	}
            }
        }        
				
		private string _resourcedesc;     
		/// <summary>
		/// 资源描述
        /// </summary>		
		[FieldMapping("ResourceDesc" )]		
				public string ResourceDesc
        {
            get
            { 
            	return _resourcedesc; 
            }
            set
            { 
            	if(_resourcedesc != value)
            	{            	
            		base.OnPropertyChanged("ResourceDesc", _resourcedesc, value);
            		_resourcedesc = value; 
            	}
            }
        }        
				
		private string _projectid;     
		/// <summary>
		/// ProjectID
        /// </summary>		
		[FieldMapping("ProjectID" )]		
		[NotNullValidator(MessageTemplate="不能为空")]
				public string ProjectID
        {
            get
            { 
            	return _projectid; 
            }
            set
            { 
            	if(_projectid != value)
            	{            	
            		base.OnPropertyChanged("ProjectID", _projectid, value);
            		_projectid = value; 
            	}
            }
        }        
		   
	}
}